﻿<Window x:Class="WPF.Views.ReactivePropertyBasics"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:Sample.ViewModels;assembly=Sample.ViewModels"
        Title="ReactivePropertyBasics" Height="300" Width="500">
    <Window.DataContext>
        <vm:ReactivePropertyBasicsViewModel />
    </Window.DataContext>
    <StackPanel>
        <TextBlock>Appears chracter after 1 second.</TextBlock>
        <!-- ReactiveProperty binding ".Value" -->
        <TextBox Text="{Binding InputText.Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
        <TextBlock Text="{Binding DisplayText.Value}" />
        <Button Command="{Binding ReplaceTextCommand}">Is TextBox empty or not?</Button>
    </StackPanel>
</Window>